package com.cityp.mapper;

import com.cityp.bean.tool;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface toolMapper {
    List<tool> viewAll();
    int addOne (@Param("a") tool tool);
    int delOne (@Param("id")int id);
    int changeType(@Param("type")String type,@Param("id")int id);
    int changeUse(@Param("use")String use,@Param("id")int id);
    int changeSwitch(@Param("id")int id);
    int changeName(@Param("name") String name,@Param("id")int id);

}
